﻿using System;

namespace DotNetStar.TheKing.Infrastructure
{
    /// <summary>
    /// 用户不是正常可访问用户时的异常
    /// </summary>
    /// <seealso cref="System.NullReferenceException" />
    public class UserNotNormalException : NullReferenceException
    {
        public UserNotNormalException() : base($"当前用户不可访问")
        {
        }

        public UserNotNormalException(long userId)
            :base($"当前用户({userId})不可访问")
        {
        }

        public UserNotNormalException(string message) : base(message)
        {
        }

        public UserNotNormalException(string message, Exception innerException) : base(message, innerException)
        {
        }
    }
}
